package com.vhall.component.entity.notice.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/4/22 19:55
 */
@Data
public class SendNoticeReqVo implements Serializable {
    private static final long serialVersionUID = 3924717297823126778L;

    @NotBlank(message = "不能为空")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}")
    @ParamName("room_id")
    private String roomId;

    @NotBlank(message = "不能为空")
    @Size(max = 300, message = "公告内容长度不能超过300个字符")
    private String content;

    @ParamName("vss_token")
    private String vssToken;

    private String type = "text";
}
